@extends('layouts.main')

@section('title', '显示预估数据')

@section('content')
<h3>@yield('title')</h3>
<div class="btn-group" role="group">
  <a href="{{ action('BusinessData\PredictInvoiceMonthController@index') }}" class="btn btn-primary">返回列表</a>
</div>

<form class="form-horizontal">
  <div class="form-group">
		<label for="year" class="col-sm-2 control-label">年度</label>
		<div class="col-sm-6">
			<select class="form-control" id="year" name="year" disabled>
				<option value="{{ $model->year }}">{{ $model->year }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="month" class="col-sm-2 control-label">月份</label>
		<div class="col-sm-6">
			<select class="form-control" id="month" name="month" disabled>
				<option value="{{ $model->month }}">{{ $model->month }}</option>
			</select>
		</div>
    </div>

    <div class="form-group">
		<label for="sales_region_code" class="col-sm-2 control-label">销售大区</label>
		<div class="col-sm-6">
			<select class="form-control" id="sales_region_code" name="sales_region_code" disabled>
				<option value="{{ $model->sales_region->code }}">{{ $model->sales_region->code.' --- '.$model->sales_region->code_desc }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="amount" class="col-sm-2 control-label">预估开票金额</label>
		<div class="col-sm-3">
			<input class="form-control" id="amount" name="amount" value="{{ $model->amount }}" disabled>
		</div>
    </div>

    <div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<a href="{{ action('BusinessData\PredictInvoiceMonthController@edit', $model) }}" class="btn btn-primary">编辑</a>
			<a href="{{ action('BusinessData\PredictInvoiceMonthController@create') }}" class="btn btn-primary">添加</a>
		</div>
    </div>
</form>

@endsection